.class public Lcom/waiqin365/lightapp/kehu/view/SelectActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Ljava/util/ArrayList;

.field private b:Landroid/content/Context;

.field private c:Z

.field private d:Ljava/lang/String;

.field private e:Z


# direct methods
.method public constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->c:Z

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->d:Ljava/lang/String;

    iput-boolean v1, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->e:Z

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a()V
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "isCenterInTextView"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->e:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "items"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "selectedItem"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a:Ljava/util/ArrayList;

    :cond_0
    const v0, 0x7f0c0084

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "title"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0539

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/ck;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/ck;-><init>(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/cj;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/cj;-><init>(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->back(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->b:Landroid/content/Context;

    return-object v0
.end method

.method private back(Ljava/lang/String;)V
    .locals 4

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, "title"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "title"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "result"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "returnTo"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->finish()V

    const/4 v0, 0x0

    const v1, 0x7f040005

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->overridePendingTransition(II)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->d:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/view/SelectActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->e:Z

    return v0
.end method


# virtual methods
.method public back()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->back(Ljava/lang/String;)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->back()V

    goto :goto_0

    :sswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->back()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0013 -> :sswitch_0
        0x7f0c0ad2 -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->b:Landroid/content/Context;

    const v0, 0x7f030213

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x50

    invoke-virtual {v0, v1}, Landroid/view/Window;->setGravity(I)V

    new-instance v1, Landroid/util/DisplayMetrics;

    invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v2

    iget v1, v1, Landroid/util/DisplayMetrics;->widthPixels:I

    iput v1, v2, Landroid/view/WindowManager$LayoutParams;->width:I

    const v1, 0x3e99999a    # 0.3f

    iput v1, v2, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    invoke-virtual {v0, v2}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    const/high16 v1, 0x7f0d0000

    invoke-virtual {v0, v1}, Landroid/view/Window;->setWindowAnimations(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->a()V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->c:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->onBackPressed()V

    :cond_0
    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    invoke-static {v0, v1, v2}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/view/View;FF)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/SelectActivity;->c:Z

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method
